package com.lzk.product.mapper;

import com.lzk.basic.mapper.BaseMapper;
import com.lzk.pet.domain.Pet;
import com.lzk.product.domain.Product;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


public interface ProductMapper extends BaseMapper<Product> {
    /**
     * 下架
     * @param ids
     * @param date
     */
    void offSale(@Param("ids") List<Long> ids,@Param("offsaletime") Date date);

    /**
     * 上架
     * @param ids
     * @param date
     */
    void onSale(@Param("ids") List<Long> ids,@Param("onsaletime") Date date);
}
